<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page Helpers.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name">/Helpers.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Global helper functions for the weatherstation app</p>
	<ul class="tags">
				<li><span class="field">author:</span> Gavin Towey &lt;<a href="mailto:gavin@box.net">gavin@box.net</a>&gt;</li>
				<li><span class="field">license:</span> please</li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functioncheck_mysql_error" id="functioncheck_mysql_error"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">check_mysql_error</span> (line <span class="line-number">61</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">die with the error message if the given result handle or mysqli object has an error</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			check_mysql_error
		</span>
					(<span class="var-type">MySQLi_Result</span>&nbsp;<span class="var-name">$result</span>, <span class="var-type">MySQLi</span>&nbsp;<span class="var-name">$mysqli</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">MySQLi_Result</span>
				<span class="var-name">$result</span>			</li>
					<li>
				<span class="var-type">MySQLi</span>
				<span class="var-name">$mysqli</span>			</li>
				</ul>
		
	
</div>
<a name="functionget_var" id="functionget_var"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">get_var</span> (line <span class="line-number">18</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">search global request variables $_POST and $_GET in that order and return  the first defined value for the given key</p>
	<ul class="tags">
				<li><span class="field">return:</span> the value of the variable name (if any) or null.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			get_var
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span>			</li>
				</ul>
		
	
</div>
<a name="functionprettyprint" id="functionprettyprint"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">prettyprint</span> (line <span class="line-number">47</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">wrap html pre tags around the given string, with class=&quot;prettyprint&quot;</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			prettyprint
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span>			</li>
				</ul>
		
	
</div>
<a name="functionsite_url" id="functionsite_url"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">site_url</span> (line <span class="line-number">36</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">return the full URL for the base page of the site.</p>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			site_url
		</span>
				()
			</div>

		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Mon, 12 Mar 2012 11:59:41 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>